package com.blb.base;

import javax.servlet.http.HttpServlet;

/**
 * 基础Servlet，一些公共的方法和属性放入此类，其它Servlet继承该Servlet，使得公共的方法和属性为所有Servlet共享.
 * @author Administrator
 *
 */
public class BaseServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;
	private String page;
	private String limit;
	
	public int getPage() {
		return (Integer.parseInt(page) - 1) * (Integer.parseInt(limit));
	}
	public void setPage(String page) {
		this.page = page;
	}
	public int getLimit() {
		return Integer.parseInt(limit);
	}
	public void setLimit(String limit) {
		this.limit = limit;
	}
	
	
	
}
